package com.qianli.user.domain.facatory;

import com.qianli.user.domain.model.UserBaseInfoModel;
import com.qianli.user.domain.respository.UserBaseInfoRespository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * name:用户基本信息
 * auth:ting.li@qianli-inc.com
 * date:2018/1/2 15:45
 * version: v1.0.0
 **/
@Service
public class UserBaseInfoFactory {
    @Autowired
    private UserBaseInfoRespository userBaseInfoRespository;
    /**
     * 保存用户基本信息
     * @param userBaseInfoModel
     */
    public void store(UserBaseInfoModel userBaseInfoModel) {
        userBaseInfoRespository.store(userBaseInfoModel);
    }

    /**
     * 加载模型
     * @param userBaseInfoModel
     */
    public void load(UserBaseInfoModel userBaseInfoModel){
        userBaseInfoRespository.load(userBaseInfoModel);
    }
}
